package com.iot08.common.entity.app;

import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.Date;

/**
 * @author cwj
 * @description
 * @date 2025/6/7 10:59
 **/
@Data
@Document("device_bd_location_data")
public class DeviceBdLocationData {

    @Field("_id")
    private String id;

    //设备imei
    private String imei;

    //日期，一天只存一条
    private String date;

    //原始参数
    private String loc;

    //百度地图请求参数
    private String bdParam;

    //百度地图请求结果
    private String bdResult;

    //数据过期时间，创建TTL索引，过期清理掉
    private Date expiryAt;

    //百度地图请求时间
    private Long bdReqTime;

    //记录创建时间
    private Long createTime;

    //记录更新时间
    private Long updateTime;

}
